package com.siam.package_user.feign;

import com.siam.package_common.entity.BasicResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "user-siam",contextId = "memberWithdrawRecordFeignApi")
public interface MemberWithdrawRecordFeignApi {

    @PostMapping(value = "/api/memberWithdrawRecord/autoPayment")
    BasicResult autoPayment();

    @PostMapping(value = "/api/memberWithdrawRecord/updateAuditStatusSuccess")
    BasicResult updateAuditStatusSuccess(@RequestParam("orderNo") String orderNo);

    @PostMapping(value = "/api/memberWithdrawRecord/updateAuditStatusFail")
    BasicResult updateAuditStatusFail(@RequestParam("orderNo") String orderNo, @RequestParam("auditReason") String auditReason);
}